using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace DejaVuTocReader
{
    public class FileInputStream : InputStream
    {
        FileStream filestream;

        public FileInputStream(String filename,FileMode mode,FileAccess access)
        {
            filestream = new FileStream(filename, mode, access);
        }


        public override int read()
        {
            return filestream.ReadByte();
        }

        public override int available()
        {
            return (int)(filestream.Length - filestream.Position);
        }

        public override void close()
        {
            filestream.Close();
        }

        public override long skip(long n)
        {
            return base.skip(n);
        }
    }
}
